import { createRouter, createWebHistory } from 'vue-router'

import HomeView from '../views/Home.vue'
import List from '../views/List.vue'
import ListDetail from '../views/ListDetail.vue'

const routes = [
  { path: '/', redirect: '/home' },
  { path: '/home', component: HomeView },
  { path: '/whxdList', component: List},
 { path: '/whxdListDetail', component: ListDetail},
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})
export default router